<template>
    <div class="container">
        <div class="tabList">
            <div class="tabItem">
                <div class="itemBar">
                    <div class="imgbox">
                        <image class="imgitem" src="http://oss.asyke.com/user/100377/course/564/image/20190911/1568164050806361.jpg?x-oss-process=image/resize,h_100" style="width:150;height:94px"></image>
                        <text class="imgtext">未发布</text>
                    </div>
                    
                    <div class="textworld">
                        <text class="titword">第一章  体质与健康</text>
                        <text class="ren">0 人参与</text>
                    </div>
                    <!-- <div class="btnAll"> -->
                        <button class="button" :eeui="{text:'发布', model:'green'}" @click="sendPush"></button>
                        <icon class="iconmore" @click="openBottomPopup" :eeui="{content:'md-more',fontSize:44}"></icon>
                    <!-- </div> -->
                    
                </div>
                <div class="downList">
                    <div class="downitem">
                        <image class="downIMg" src="http://oss.asyke.com/user/100377/course/564/image/20190911/1568165105333448.jpg?x-oss-process=image/resize,h_100" style="width:127px;height:80px"></image>
                        <text class="dowmTit">第一节  健康的定义</text>
                    </div>
                    <div class="downitem">
                        <image class="downIMg" src="http://oss.asyke.com/user/100377/course/564/image/20190911/1568165105333448.jpg?x-oss-process=image/resize,h_100" style="width:127px;height:80px"></image>
                        <text class="dowmTit">第一节  健康的定义</text>
                    </div>
                    <div class="downitem">
                        <image class="downIMg" src="http://oss.asyke.com/user/100377/course/564/image/20190911/1568165105333448.jpg?x-oss-process=image/resize,h_100" style="width:127px;height:80px"></image>
                        <text class="dowmTit">第一节  健康的定义</text>
                    </div>
                </div>
            </div>
            <div class="tabItem">
                <div class="itemBar">
                    <div class="imgbox">
                        <image class="imgitem" src="http://oss.asyke.com/user/100377/course/564/image/20190911/1568164050806361.jpg?x-oss-process=image/resize,h_100" style="width:150;height:94px"></image>
                        <text class="imgtext">未发布</text>
                    </div>
                    
                    <div class="textworld">
                        <text class="titword">第一章  体质与健康</text>
                        <text class="ren">0 人参与</text>
                    </div>
                    <!-- <div class="btnAll"> -->
                        <button class="button" :eeui="{text:'发布', model:'green'}" @click="sendPush"></button>
                        <icon class="iconmore" @click="openBottomPopup" :eeui="{content:'md-more',fontSize:44}"></icon>
                    <!-- </div> -->
                    
                </div>
                <div class="downList">
                    <div class="downitem">
                        <image class="downIMg" src="http://oss.asyke.com/user/100377/course/564/image/20190911/1568165105333448.jpg?x-oss-process=image/resize,h_100" style="width:127px;height:80px"></image>
                        <text class="dowmTit">第一节  健康的定义</text>
                    </div>
                    <div class="downitem">
                        <image class="downIMg" src="http://oss.asyke.com/user/100377/course/564/image/20190911/1568165105333448.jpg?x-oss-process=image/resize,h_100" style="width:127px;height:80px"></image>
                        <text class="dowmTit">第一节  健康的定义</text>
                    </div>
                    <div class="downitem">
                        <image class="downIMg" src="http://oss.asyke.com/user/100377/course/564/image/20190911/1568165105333448.jpg?x-oss-process=image/resize,h_100" style="width:127px;height:80px"></image>
                        <text class="dowmTit">第一节  健康的定义</text>
                    </div>
                </div>
            </div>
            <div class="tabItem">
                <div class="itemBar">
                    <div class="imgbox">
                        <image class="imgitem" src="http://oss.asyke.com/user/100377/course/564/image/20190911/1568164050806361.jpg?x-oss-process=image/resize,h_100" style="width:150;height:94px"></image>
                        <text class="imgtext">未发布</text>
                    </div>
                    
                    <div class="textworld">
                        <text class="titword">第一章  体质与健康</text>
                        <text class="ren">0 人参与</text>
                    </div>
                    <!-- <div class="btnAll"> -->
                        <button class="button" :eeui="{text:'发布', model:'green'}" @click="sendPush"></button>
                        <icon class="iconmore" @click="openBottomPopup" :eeui="{content:'md-more',fontSize:44}"></icon>
                    <!-- </div> -->
                    
                </div>
                <div class="downList">
                    <div class="downitem">
                        <image class="downIMg" src="http://oss.asyke.com/user/100377/course/564/image/20190911/1568165105333448.jpg?x-oss-process=image/resize,h_100" style="width:127px;height:80px"></image>
                        <text class="dowmTit">第一节  健康的定义</text>
                    </div>
                    <div class="downitem">
                        <image class="downIMg" src="http://oss.asyke.com/user/100377/course/564/image/20190911/1568165105333448.jpg?x-oss-process=image/resize,h_100" style="width:127px;height:80px"></image>
                        <text class="dowmTit">第一节  健康的定义</text>
                    </div>
                    <div class="downitem">
                        <image class="downIMg" src="http://oss.asyke.com/user/100377/course/564/image/20190911/1568165105333448.jpg?x-oss-process=image/resize,h_100" style="width:127px;height:80px"></image>
                        <text class="dowmTit">第一节  健康的定义</text>
                    </div>
                </div>
            </div>
            
        </div>

        <wxc-popup popup-color="#ffffff"
                :show="isBottomShow"
                @wxcPopupOverlayClicked="popupOverlayBottomClick"
                pos="bottom"
                height="400">
            <div class="demo-content">
                <text class="popoverTit">第一章 体制与健康</text>
                <div class="popoverIconList">
                    <div class="popoverItem">
                        <image src="" style="width:90px;height:90px"></image>
                        <text class="popoverText">发布设置</text>
                    </div>
                    <div class="popoverItem">
                        <image src="" style="width:90px;height:90px"></image>
                        <text class="popoverText">统计</text>
                    </div>
                    <div class="popoverItem">
                        <image src="" style="width:90px;height:90px"></image>
                        <text class="popoverText">弹幕</text>
                    </div>
                     <div class="popoverItem">
                        <image src="" style="width:90px;height:90px"></image>
                        <text class="popoverText">分享</text>
                    </div>
                </div>
            </div>
        </wxc-popup>
    </div>
</template>
<script>
    import { WxcPopup } from 'weex-ui';
     export default {
         components: { WxcPopup },
         data(){
             return{
                isBottomShow: false,
                height: 400
             }
         },
          methods: {
            openBottomPopup () {
                this.isBottomShow = true;
            },
            //非状态组件，需要在这里关闭
            popupOverlayBottomClick () {
                this.isBottomShow = false;
            },
            sendPush(){
                var self = this;
                eeui.alert({
                   title:'信息提示' ,
                   message:'你确定要发布该教材吗？'
                }, function(){

                })
            }
        }
     }
</script>
<style scoped>
.container{
    width: 750;
    background-color: #fff;
}
.itemBar{
    height:150;
    flex-direction: row;
    border-bottom-color: #ebebeb;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}
.imgbox{
    width: 150px;
    height: 94px;
    position: relative;
    border-radius: 6px;
    margin-top: 30px;
    margin-left: 30px;
}
.textworld{
    margin-left: 20px;
    margin-top: 40px;
    width: 300px;
}
.titword{
    font-size: 28;
    color: #999;
    margin-bottom: 10px;
}

.ren{
   font-size: 20;
   color: #999; 
}
.imgtext{
    width: 150px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #ffffff;
    font-size: 20;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
}
.button {
    font-size: 24px;
    margin-left: 37.5px;
    margin-right: 37.5px;
    margin-bottom: 20px;
    width: 120px;
    height: 50px;
    color: #ffffff;
    margin-top: 45px;
}

.downIMg{
    border-radius: 6px;
    margin-left: 70px;
}
.downitem{
    flex-direction: row;
    padding-top: 20px;
    align-items: center;
     border-bottom-color: #ebebeb;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    padding-bottom:20px;
}
.dowmTit{
    font-size: 26;
    color: #666;
    margin-left: 20px;
}
.iconmore{
    width: 20px;
    height: 140px;
    color: #999;
}
.popoverTit{
    height: 66;
    line-height: 66;
    font-size: 30;
    border-bottom-color: #999;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    text-align: center;
}
.popoverIconList{
    flex-direction: row;
   flex-wrap: wrap; 
   
}
.popoverItem{
    width: 250px;
    margin-top: 30px;
}
.popoverText{
    text-align: center;
}
</style>
